<%@ page import="com.plan.Workplan" %>

<div class="splitcontentleft">
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'planTitle', 'error')} required">
		<label for="planTitle">
			<g:message code="workplan.planTitle.label" default="Plan Title" />
			<span class="required-indicator">*</span>
		</label>
		<g:textField name="planTitle" style="width:60%;" value="${workplanInstance?.planTitle}" required=""/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'workContent', 'error')} ">
		<label for="workContent">
			<g:message code="workplan.workContent.label" default="Work Content" />
			
		</label>
		<g:textArea name="workContent" style="height:100px;width:60%;;"  value="${workplanInstance?.workContent}"/>
	</div>
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'startDate', 'error')} required">
		<label for="startDate">
			<g:message code="workplan.startDate.label" default="Start Date" />
			<span class="required-indicator">*</span>
		</label>
		<g:datePicker name="startDate" precision="day" year="2000..2020" value="${workplanInstance?.startDate}"  />
	</div>
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'endDate', 'error')} required">
		<label for="endDate">
			<g:message code="workplan.endDate.label" default="End Date" />
			<span class="required-indicator">*</span>
		</label>
		<g:datePicker name="endDate" precision="day" year="2000..2020" value="${workplanInstance?.endDate}"  />
	</div>
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'workResult', 'error')} ">
		<label for="workResult">
			<g:message code="workplan.workResult.label" default="Work Result" />
			
		</label>
		<g:textField name="workResult"  value="${workplanInstance?.workResult}"/>
	</div>
</div>

<div class="splitcontentright">
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'worker', 'error')} ">
		<label for="worker">
			<g:message code="workplan.worker.label" default="Worker" />
			
		</label>
		<g:textField name="worker" value="${workplanInstance?.worker}"/>
	</div>
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'creater', 'error')} ">
		<label for="creater">
			<g:message code="workplan.creater.label" default="Creater" />
			
		</label>
		<g:textField name="creater" maxlength="30" value="${workplanInstance?.creater}" readOnly="readOnly"/>
	</div>
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'remark', 'error')} ">
		<label for="remark">
			<g:message code="workplan.remark.label" default="Remark" />
			
		</label>
		<g:textArea name="remark" cols="40" rows="5" maxlength="255"  value="${workplanInstance?.remark}"/>
	</div>
</div>

<!--
	<div class="fieldcontain ${hasErrors(bean: workplanInstance, field: 'status', 'error')} ">
		<label for="status">
			<g:message code="workplan.status.label" default="Status" />
			
		</label>
		<g:field type="number" name="status" max="2147483647" value="${fieldValue(bean: workplanInstance, field: 'status')}"/>
	</div>
-->

